package pikes.xml;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.junit.Test;
import pikes.mock.XMLRenderingTest;

public class XMLPageTestCase {

	@Test
	public void simpleXMLDocumentView() throws Exception {
		XMLDocumentView view = new XMLDocumentView() {
			@Override
			protected XMLTag createRootTag(Map model, HttpServletRequest request) throws Exception {
				return new XMLTag("test");
			}
		};
		XMLRenderingTest.assertRendering(view,"<?xml version=\"1.0\"?><test/>");
	}
	
	
}
